package com.xc.tjise.TJISE.day05;

public class MathTest {
    public static void main(String[] args) {
        System.out.println(Math.E);
        System.out.println(Math.PI);

        System.out.println(Math.abs(-2.71828));
        System.out.println(Math.abs(2.71828));
        System.out.println(Math.floor(2.71828));  //向下取整
        System.out.println(Math.ceil(2.71828));   // 向上取整
        System.out.println(Math.ceil(2.71828));   // 向上取整
        System.out.println(Math.pow(2,10));   //
        System.out.println((int)(Math.random()*42));   //[0 , 1)
    }

}


/*2.718281828459045
3.141592653589793
2.71828
2.71828
2.0
3.0
*/